#ifndef GLOBALPARAMETER_H
#define GLOBALPARAMETER_H

#pragma once

#include "qstring.h"

namespace interface
{
enum InterfaceRequestEnum
{
    //basic functions
    LOGIN = 0,          //client login
    SERVICE_CHOOSE,  //choose services
    BOOK_CAR,        //book a car
    CHOOSE_CAR,      //choose a car
    CONFIRM_CAR,    // user confirms the car he is selecting
    WAITING_FOR_CAR,  //wait for a car
    CAR_DRIVING,     //the car is taking the passenger
    ARRIVING,        //when the car arrvies at the point

    // other functions
    CAR_POOLING,    //car pooling
    FIXED_LOCATION_CALL_CAR, //fixed location to call the car
    ROUNTIN_SEARCH, //search for a rountin from one place to another
    LANDSCAPE_SEARCH,//search for a specific place
    CUSTOMER_SERVICES//look for customer services
};
}

typedef struct
{
    QString name;
    QString id;
}CUSTOMER_NAME, *PCUSTOMER_NAME;

typedef struct
{
    QString car_id;
    // TODO: whether we should add the driver_id to identify which driver we are in touch with,
    // in case that multiple drivers drive one car.
    QString licence_number;
    QString driver_name;
    int arrivingTime;
    QString mobile_phone;
}CHOSEN_CAR_INFO, *PCHOSEN_CAR_INFO;

typedef struct
{
    CHOSEN_CAR_INFO * pCarInfo;
    QString order_id;
}ORDER_INFO, *PORDER_INFO;

#endif // GLOBALPARAMETER_H
